package SeleniumTest.page;

import SeleniumTest.test.BaseTest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ae
 * Date: 16.07.13
 * Time: 21:25
 * To change this template use File | Settings | File Templates.
 */
public class Navigation extends BaseTest {

    @FindBy(xpath = ".//*[@id='__pageBody']/div[2]/div[2]/div/div/div[1]/div/a")
    private List<WebElement> menu = new ArrayList<WebElement>();
    public Navigation(WebDriver driver) {
        PageFactory.initElements(driver, this);
    }
    public List<WebElement> getMenu() {
        return menu;
    }
}